package com.edu.neusoft.student.service;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.edu.neusoft.student.domain.Customer;
import com.edu.neusoft.student.mapper.CustomerMapper;

import java.util.List;

@Service
public class CustomerService{

    @Resource
    private CustomerMapper customerMapper;

    
    public int deleteByPrimaryKey(Integer customerid) {
        return customerMapper.deleteByPrimaryKey(customerid);
    }

    
    public int insert(Customer record) {
        return customerMapper.insert(record);
    }

    
    public int insertSelective(Customer record) {
        return customerMapper.insertSelective(record);
    }

    
    public Customer selectByPrimaryKey(Integer customerid) {
        return customerMapper.selectByPrimaryKey(customerid);
    }

    
    public int updateByPrimaryKeySelective(Customer record) {
        return customerMapper.updateByPrimaryKeySelective(record);
    }

    
    public int updateByPrimaryKey(Customer record) {
        return customerMapper.updateByPrimaryKey(record);
    }

    public List<Customer> selectAllCustomers() {return customerMapper.selectAllCustomers();}
}
